package edu.sctu.practice.class02.zhaozhongjun.test2;

/**
 * Created by 赵中军 on 2015/10/15.
 */
public class Vehicle {
    public int speed;
    public int size;

    public void move(){
    }
    public void setspeed(int speed){

     this.speed=speed;
    }
    public void speedup(){
        speed=speed+1;
        this.speed=speed;
    }
    public void speeddown(){
     speed=speed -1;
        this.speed=speed;

    }
}
